projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18eee22
)
zynq-common: Define flash env. partition
author
Jagannadha Sutradharudu Teki
<
[email protected]
>
Wed, 8 Jan 2014 20:18:24 +0000
(
01:48
+0530)
committer
Albert ARIBAUD
<
[email protected]
>
Fri, 10 Jan 2014 14:18:33 +0000
(15:18 +0100)
Last 128Kb sector of 1Mb flash is defined as u-boot
environment partition.
Signed-off-by: Jagannadha Sutradharudu Teki <
[email protected]
>
include/configs/zynq-common.h
patch
|
blob
|
history
diff --git
a/include/configs/zynq-common.h
b/include/configs/zynq-common.h
index 402009ee95699e830c6429cf327093be5b1f1de8..568c49f4c77829083e44b027521c30557a70958f 100644
(file)
--- a/
include/configs/zynq-common.h
+++ b/
include/configs/zynq-common.h
@@
-133,7
+133,17
@@
#define CONFIG_ENV_SIZE (128 << 10)
/* Environment */
-#define CONFIG_ENV_IS_NOWHERE
+#ifndef CONFIG_ENV_IS_NOWHERE
+# ifndef CONFIG_SYS_NO_FLASH
+# define CONFIG_ENV_IS_IN_FLASH
+# elif defined(CONFIG_SYS_NO_FLASH)
+# define CONFIG_ENV_IS_NOWHERE
+# endif
+
+# define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
+# define CONFIG_ENV_OFFSET 0xE0000
+# define CONFIG_CMD_SAVEENV
+#endif
/* Default environment */
#define CONFIG_EXTRA_ENV_SETTINGS \